package com.jiot.plugin.motan.export;

import com.jfinal.kit.PropKit;
import com.jfinal.plugin.IPlugin;

public class ExportPlugin implements IPlugin{
	
	
	private String scanPackage;
	
	//https://github.com/weibocom/motan/wiki/zh_configuration
	public ExportPlugin(String configFile) {
		scanPackage = PropKit.use(configFile).get("scanPackage");
	}
	
	@Override
	public boolean start() {
		try {
			new ExportKit().startExportRPC(scanPackage);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return true;
	}

	@Override
	public boolean stop() {
		
		return false;
	}





	
	
	
	
}
